body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    text-align: center;
}

h1 {
    font-family: 'Luckiest Guy', cursive;
    font-size: clamp(2rem, 10vw, 3rem);
    color: #ff4500;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 2px 2px #00000020;
}

.subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

.controls-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    text-align: left;
    flex-wrap: wrap;
}

.genre-container {
    flex: 1;
    min-width: 150px;
}

.prompts-column {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 250px;
}

.prompt-container, .inspiration-container {
    /* No special styles needed */
}

.prompt-container label, .genre-container label, .inspiration-container label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 1rem;
}

#user-prompt, #inspiration-game {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    background-color: #fafafa;
    min-height: 80px;
    resize: vertical;
}

#genre-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fafafa;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-wrapper label {
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-wrapper input[type="checkbox"] {
    cursor: pointer;
    width: 1em;
    height: 1em;
    margin: 0;
}

#user-prompt:focus, #inspiration-game:focus, #genre-checkboxes:has(input:focus) {
    outline: none;
    border-color: #ff6347;
    box-shadow: 0 0 0 2px #ff634730;
}

#generate-btn {
    font-family: 'Luckiest Guy', cursive;
    background-color: #ff6347;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

#generate-btn:hover {
    background-color: #e5533d;
}

#generate-btn:active {
    transform: scale(0.98);
}

#generate-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#idea-container {
    background-color: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    min-height: 150px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.5s ease;
    opacity: 1;
}

#idea-container.loading {
    opacity: 0.5;
}

#idea-container h2 {
    font-family: 'Luckiest Guy', cursive;
    color: #ff4500;
    margin-top: 0;
    font-size: 1.8rem;
}

#idea-container p {
    line-height: 1.6;
    margin: 0.5em 0;
}

#idea-container strong {
    color: #333;
    font-weight: bold;
}

.idea-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.save-btn, .delete-btn {
    font-family: 'Luckiest Guy', cursive;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    letter-spacing: 1px;
}

.save-btn {
    background-color: #4CAF50; /* Green */
}

.save-btn:hover {
    background-color: #45a049;
}

.save-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.delete-btn {
    background-color: #f44336; /* Red */
}

.delete-btn:hover {
    background-color: #e53935;
}

#saved-ideas-section {
    margin-top: 30px;
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

#saved-ideas-section h2 {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2rem;
    color: #ff4500;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 2px 2px #00000020;
}

#saved-ideas-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.saved-idea-card {
    background-color: #fdfdfd;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.saved-idea-card h3 {
    font-family: 'Luckiest Guy', cursive;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.saved-idea-card p {
    line-height: 1.6;
    margin: 0.5em 0;
}

.saved-idea-card strong {
    font-weight: bold;
    color: #333;
}